<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>添加链接</title>
    <link rel="stylesheet" href="../../../layui/css/layui.css">
    <link rel="stylesheet" href="./addLink.css">
</head>

<body>
    <form class="layui-form" onsubmit="return false;">
        <div class="layui-tab layui-tab-brief" lay-filter="addLinkTab">
            <ul class="layui-tab-title">
                <li class="layui-this">点餐</li>
                <li>商城</li>
                <li>优惠券</li>
                <li>营销活动</li>
                <li>其他</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">页面选择</label>
                            <div class="layui-input-block">
                                <input type="radio" name="orderChoosePage" value="1" data-value="1" lay-filter="unify-radio" data-type="order-choose-page" title="商品">
                                <input type="radio" name="orderChoosePage" value="2" data-value="2" lay-filter="unify-radio" data-type="order-choose-page" title="分类">
                                <input type="radio" name="orderChoosePage" value="3" data-value="3" lay-filter="unify-radio" data-type="order-choose-page" title="堂食门店列表">
                                <input type="radio" name="orderChoosePage" value="4" data-value="4" lay-filter="unify-radio" data-type="order-choose-page" title="外卖门店列表">
                            </div>
                        </div>
                    </div>
                    <div>
                        <div class="layui-inline order-control-1">
                            <div class="layui-input-inline">
                                <select name="orderClassify">
                                    <option value="1">所有分类</option>
                                    <option value="2">分类2</option>
                                </select>
                            </div>
                            <button class="layui-btn layui-btn-sm layui-btn-normal">查询</button>
                        </div>
                        <div class="orderGoodsTableWrap order-control-1">
                            <!-- 点餐/商品 下的表格 -->
                            <table lay-filter="orderGoodsTable" id="orderGoodsTable"></table>
                        </div>
                        <div class="orderClassifyTableWrap order-control-2" style="display: none;">
                            <!-- 点餐/分类 下的表格 -->
                            <table lay-filter="orderClassifyTable" id="orderClassifyTable"></table>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">适用范围</label>
                                <div class="layui-input-block">
                                    <input type="checkbox" lay-skin="primary" name="orderUseRange[in]" title="堂食">
                                    <input type="checkbox" lay-skin="primary" name="orderUseRange[out]" title="外卖">
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">指定门店</label>
                                <div class="layui-input-block">
                                    <input type="radio" lay-filter="unify-radio" data-type="orderAppointShop" data-value="1" name="orderAppointShop" title="全部">
                                    <input type="radio" lay-filter="unify-radio" data-type="orderAppointShop" data-value="2" name="orderAppointShop" title="部分门店">
                                </div>
                            </div>
                        </div>
                        <!-- 树形表格 -->
                        <div class="order-appoint-shop-2" style="display: none;">
                            <div>
                                <input class="layui-input" id="edtSearch" value="添加用户" placeholder="输入关键字" style="display: inline-block;width: 140px;height: 30px;line-height: 30px;padding: 0 5px;margin-right: 5px;"/>
                                <button id="btnSearch" class="layui-btn layui-btn-sm layui-btn-normal">
                                    搜索
                                </button>
                                <button id="btnClearSearch" class="layui-btn layui-btn-sm layui-btn-primary">
                                    清除搜索
                                </button>
                            </div>
                            <div class="layui-row layui-col-space10">
                                <div class="layui-col-md6">
                                    <table id="partShopTreeTable" lay-filter="partShopTreeTable"></table>
                                </div>
                                <div class="layui-col-md6">
                                    <table id="userSelectTreeTable" lay-filter="userSelectTreeTable"></table>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
                <div class="layui-tab-item">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">页面选择</label>
                            <div class="layui-input-block">
                                <input type="radio" name="layerSize" value="1" data-value="1" lay-filter="unify-radio" data-type="shopping-choose-page" title="商品">
                                <input type="radio" name="layerSize" value="2" data-value="2" lay-filter="unify-radio" data-type="shopping-choose-page" title="分类">
                                <input type="radio" name="layerSize" value="3" data-value="3" lay-filter="unify-radio" data-type="shopping-choose-page" title="商城首页">
                            </div>
                        </div>
                    </div>
                    <!-- 商城/商品 -->
                    <div class="shopping-control-show-1">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">选择分类</label>
                                <div class="layui-input-inline">
                                    <select name="orderClassify">
                                        <option value="1">所有分类</option>
                                        <option value="2">分类2</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <table lay-filter="shoppingGoodsTable" id="shoppingGoodsTable"></table>
                    </div>
                    <!-- 商城/分类 -->
                    <div  class="shopping-control-show-2" style="display:none;">
                        <div>选择页面定点分类</div>
                        <table lay-filter="shoppingClassifyTable" id="shoppingClassifyTable"></table>
                    </div>
                    <!-- 商城/商城首页 -->
                    <div  class="shopping-control-show-3" style="display: none;">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">选择分类</label>
                                <div class="layui-input-inline">
                                    <select name="orderClassify">
                                        <option value="1">所有分类</option>
                                        <option value="2">分类2</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- 优惠券 -->
                <div class="layui-tab-item">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">页面选择</label>
                            <div class="layui-input-block">
                                <input type="radio" name="layerSize" value="1" data-value="1" lay-filter="unify-radio" data-type="coupon" title="领取优惠券页面">
                                <input type="radio" name="layerSize" value="2" data-value="2" lay-filter="unify-radio" data-type="coupon" title="我的优惠券页面">
                                <input type="radio" name="layerSize" value="3" data-value="3" lay-filter="unify-radio" data-type="coupon" title="优惠券选择">
                                <input type="radio" name="layerSize" value="4" data-value="4" lay-filter="unify-radio" data-type="coupon" title="优惠券包选择">
                            </div>
                        </div>
                    </div>
                    <div class="coupon-control-3" style="display:none;">
                        <div class="layui-inline">
                            <div class="layui-input-inline">
                                <select name="" >
                                    <option value="">发券平台</option>
                                </select>
                            </div>
                            <div class="layui-input-inline">
                                <select name="" >
                                    <option value="">选择券类型</option>
                                </select>
                            </div>
                            <div class="layui-input-inline">
                                <select name="" >
                                    <option value="">选择券分类</option>
                                </select>
                            </div>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input">
                            </div>
                            <button class="layui-btn layui-btn-sm layui-btn-normal">查询</button>
                        </div>
                        <table id="couponTable" lay-filter="couponTable"></table>
                    </div>
                    <div class="coupon-control-4"  style="display:none;">
                        <div class="layui-inline">
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input">
                            </div>
                            <button class="layui-btn layui-btn-sm layui-btn-normal">查询</button>
                        </div>
                        <table id="couponPackageTable" lay-filter="couponPackageTable"></table>
                    </div>
                </div>
                <!-- 营销活动 -->
                <div class="layui-tab-item">
                    <div class="layui-inline">
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input">
                        </div>
                        <button class="layui-btn layui-btn-sm layui-btn-normal">查询</button>
                    </div>
                    <div>
                        <table lay-filter="activityTable" id="activityTable"></table>
                    </div>
                </div>
                <!-- 其他 -->
                <div class="layui-tab-item">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">页面选择</label>
                            <div class="layui-input-block">
                                <input type="radio" name="otherChoosePage" value="1" data-value="1" lay-filter="unify-radio" data-type="otherChoosePage" title="我的">
                                <input type="radio" name="otherChoosePage" value="2" data-value="2" lay-filter="unify-radio" data-type="otherChoosePage" title="会员信息完善">
                                <input type="radio" name="otherChoosePage" value="3" data-value="3" lay-filter="unify-radio" data-type="otherChoosePage" title="储值">
                                <input type="radio" name="otherChoosePage" value="4" data-value="4" lay-filter="unify-radio" data-type="otherChoosePage" title="会员码">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</body>
<script src="../../../js/jquery.min.js"></script>
<script src="../../../layui/layui.js"></script>
<script src="./addLink.js"></script>

</html>